package com.study.ibmMq.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author wei.zhao
 * @description:
 * @date 2022年06月22日 11:34
 */

@Slf4j
@Component
public class MessageConsumer {

    @JmsListener(destination = "${project.ibmmq.queue01}")
    public void receive(String message) {
        log.info("Received message is: " + message);
    }

}
